package router

import (
	jwt "github.com/appleboy/gin-jwt/v2"
	"github.com/gin-gonic/gin"
)

func InitUserRouter(group *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) gin.IRoutes {
	// 使用JWT鉴权中间件
	router := group.Group("user").Use(authMiddleware.MiddlewareFunc())
	{
		//router.POST("/list", v1.GetUserList)
		//router.PUT("/changePwd", v1.ChangePassword)
		//router.GET("/info", v1.GetUserInfo)
		//router.POST("/create", v1.CreateUser)
		//router.PUT("/:userId", v1.UpdateUserById)
		//router.DELETE("/batch", v1.BatchDeleteUser)
		//router.POST("/list/role", v1.GetUserListByRoleId)
	}

	return router
}
